package cn.qqncn.furniture.service;

import cn.qqncn.furniture.mapper.AdminMapper;
import cn.qqncn.furniture.pojo.domain.Admin;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author zkw
 * @ClassName AdminService.java
 * @Description TODO
 * @createTime 2020年12月30日 14:56:00
 */
@Service
public class AdminService {
    @Resource
    AdminMapper adminMapper;

    /**
     * 根据账号查询admin
     * @param account
     * @return
     */
    public Admin selectByAccount(String account){
        return  adminMapper.selectByPrimaryKey(account);
    }
}
